package me.zhengjie.spider.pool;

import me.zhengjie.spider.util.service.FileDownloader;
import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.AbandonedConfig;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;

/**
 * FileDownloader对象池
 * @author Administrator
 */
public class DownloaderObjectPool extends GenericObjectPool<FileDownloader> {
    public DownloaderObjectPool(PooledObjectFactory<FileDownloader> factory) {
        super(factory);
    }

    public DownloaderObjectPool(PooledObjectFactory<FileDownloader> factory, GenericObjectPoolConfig<FileDownloader> config) {
        super(factory, config);
    }

    public DownloaderObjectPool(PooledObjectFactory<FileDownloader> factory, GenericObjectPoolConfig<FileDownloader> config, AbandonedConfig abandonedConfig) {
        super(factory, config, abandonedConfig);
    }
}
